<?php
/**
 * Slipstream :: Highly adaptive dependency injection framework
 * Copyright 2010-2011 Ian Unruh (Xerof3ar)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace Slipstream\Extension;

use Slipstream\ContainerInterface;
use Slipstream\Activation\SessionInterface;

/**
 * Abstract implementation of ExtensionInterface
 *
 * @author Ian Unruh (Xerof3ar) <ianunruh@gmail.com>
 * @since Class avaliable since release 1.0
 */
abstract class AbstractExtension implements ExtensionInterface
{
	/**
	 * Called when the container is initialized
	 *
	 * @param ContainerInterface $container
	 * @return void
	 */
	public function onContainerInitialize(ContainerInterface $container)
	{
	}
	
	/**
	 * Called when the container is shutdown
	 *
	 * @param ContainerInterface $container
	 * @return void
	 */
	public function onContainerShutdown(ContainerInterface $container)
	{
	}
	
	/**
	 * Called when an extension is registered to the container
	 *
	 * @param ContainerInterface $container
	 * @return void
	 */
	public function onExtensionRegister(ContainerInterface $container)
	{
	}
	
	/**
	 * Called when an extension is unregistered from the container
	 *
	 * @param ContainerInterface $container
	 * @return void
	 */
	public function onExtensionUnregister(ContainerInterface $container)
	{
	}
	
	/**
	 * Called when an activation session begins
	 *
	 * @param ContainerInterface $container
	 * @param SessionInterface $session
	 * @return void
	 */
	public function onSessionStart(ContainerInterface $container, SessionInterface $session)
	{
	}
	
	/**
	 * Called when an activation session finishes
	 *
	 * @param ContainerInterface $container
	 * @param SessionInterface $session
	 * @return void
	 */
	public function onSessionFinish(ContainerInterface $container, SessionInterface $session)
	{
	}
}